package scalaLearning.scalaBasic

/**
  * Created by liulebin on 02/09/2017.
  */
object HelloWorld {
  def main(args: Array[String]): Unit = {
    practiseByMe()

  }



  def practiseByMe(): Unit ={
    for (i <- 1 to 3;j <- 1 to 3 if i==j ) print((10 * i + j) + "  " )
    println()
    for (i<-1 to 3; from = 4 - i) print(from + " " )
    println()
    println("############################")

   val result = for (i <- 1 to 10) yield i%3
    print(result)

  }

}
